home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hyper Stacks 1994 May
/
Hyper Stacks (Pacific HiTech)(1994)[Mac].iso
/
XCMDS&XFCNS
/
RTF XCMDs 1.3
/
rtf.h
< prev
next >
Wrap
Text File
|
1992-12-19
|
1KB
|
39 lines
/*
* This software is copyright 1992 by Robert Morris.
* You may freely redistribute this software as shareware
* if you do so in the same form as you got it. If you find
* this software useful, please send $12 to:
* Robert Morris
* P.O. Box 1044
* Harvard Square Station
* Cambridge, MA 02238
* ecognome@aol.com
* If you incorporate any of this software in any kind of
* commercial product, please send $2 per copy distributed
* to the above address.
*/
/*
* utilities for parsing RTF.
*/
/*
* my own version of TEStyleRec that has 32-bit character
* offsets, instead of 16-bit.
*/
typedef struct{
long startChar;
long styleIndex;
} MyStyleRun;
typedef struct{
long nRuns;
long nStyles;
STHandle styleTab;
MyStyleRun runs[1]; /* this array grows */
} MyStyleRec, **MyStyleHandle;
void parsertf(Handle txt, MyStyleHandle *shp, Handle *outtxt);
MyStyleHandle NewMyStyleHandle(void);
void DisposMyStyleHandle(MyStyleHandle);
OSErr CvtMyStyleHandle(MyStyleHandle, long *start, TEStyleHandle, long max, Handle txt);